package com.chenhao.springcloud.chenhaosentinelservice.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.chenhao.springcloud.chenhaosentinelservice.pojo.Result;

/**
 *
 * @return
 * @author chenhao
 *
 * @date 2020/4/23 10:59
 */
public class CustomBlockHandler {

    public Result handleException(BlockException exception) {
        return new Result("自定义限流信息", 200);
    }

}
